package model

type SlideshowListInput struct {
	Keywords string `json:"keywords" in:"query" dc:"关键词搜索"`
	PageSizeReq
}

type SlideshowItem struct {
	Id          uint64 `json:"id" dc:""`
	SlideTitle  string `json:"slide_title" dc:"标题"`
	SlideImage  string `json:"slide_image" dc:"图片"`
	SlideDesc   string `json:"slide_desc" dc:"描述"`
	SlideLink   string `json:"slide_link" dc:"链接"`
	SlideSort   int    `json:"slide_sort" dc:"排序"`
	SlideStatus uint   `json:"slide_status" dc:"状态"`
}

type SlideshowFormInput struct {
	SlideTitle  string `json:"slide_title" v:"required|max-length:30" dc:"标题"`
	SlideImage  string `json:"slide_image" v:"max-length:200" dc:"图片"`
	SlideDesc   string `json:"slide_desc" v:"max-length:150" dc:"描述"`
	SlideLink   string `json:"slide_link" v:"url|max-length:200" dc:"链接"`
	SlideSort   int    `json:"slide_sort" v:"integer|between:0,1000" dc:"排序"`
	SlideStatus uint   `json:"slide_status" v:"integer|in:0,1" dc:"状态"`
}
